<?php
/**
 * Created by PhpStorm.
 * User: ningtaoli
 * Date: 2018/4/24
 * Time: 下午9:11
 */

namespace app\common\validate;


use think\Validate;

class buy extends Validate
{
    protected $rule =   [
        'WIDout_trade_no'  => 'require|length:32',
        'WIDout_fee' => 'require',
        'WIDsubject' => 'require',
    ];

    protected $message  =   [
        'WIDout_trade_no.length' => '订单格式错误！',
        'WIDout_trade_no.require' => '订单不能为空！',
        'WIDout_fee.require'     => '产品价格不能为空！',
        'WIDsubject.require'     => '产品名称不能为空！',
    ];
}